local wu__zhigu = fk.CreateSkill {
  name = "wu__zhigu",
  tags = {Skill.Compulsory},
}

Fk:loadTranslationTable{
  ["wu__zhigu"] = "桎梏",
  [":wu__zhigu"] = "锁定技，当你造成伤害时，你将伤害值改为1点。",
}

wu__zhigu:addEffect(fk.DamageInflicted, {
  can_trigger = function(self, event, target, player, data)
    return player:hasSkill(wu__zhigu.name)
    and data.from and data.from == player
  end,
  on_use = function(self, event, target, player, data)
    if data.damage > 1 then
      data.damage = 1
    end
  end,
})

return wu__zhigu